Fix crash when changing HP of a bot