Fixed a critical bug that made the bot unable to start