bugfix for delete button