Fix crash when collecting a rat.