bug fixed: entering cheat mode caused the game to freeze
bug fixed: some errors could freeze the game and were not logged correctly