Clear record when doc_type was changed