Fix crash in singleplayer