fixes delete dialog