fixed crash on update check
Merge pull request #1300 from brine/test

fixed crash on update check