fixed exception in UtilEntity.setDead