fixed delete button problem