Fix some mode changes breaking the bot.