bug onDelete solved