fixed bug that prevented the program from updating to the new version (until the user closed it manually)