Fix bug delete