fix deletion of loop event