Fixed entity destroy.