Various bot bug fixes.