fix corpse errors