fixed bug relating to deleting jobs while a bot is active.