Fix crashing when executing auto-update.