fixed crash on update check