fix some bot bugs