Fixed delete issues. Delete button wasn't working after first delete