Bug fixes

Fixed an issue where the bot would crash during a bad record request