Fixed delete button bug