fixed crash when last update is not there