fixed bug, checkForUpdate was not called