fixed delete dialog error