Fixed delete button not disabling itself.