This is a problem with the program, not windows. The program is keeping an internal list of items. Say these items are listed zero thru 9. Clicking the button is trying to access item -1. There is no such item in the list so you get this error.
Unless you wrote the program yourself or have access to the source code there isn't anything you can do.