Fix for crash when there was no deletebutton to click