Fixed correct disabling of delete button.