solved bug when dying with a boss