Fixed some more bugs in bot_manager