Fix process_doc for temp views