Fix exception when getting hit by a trap