fix bug when player dies by falling out of map