Corrected entity not being destroyed properly