fixed memory full in editing from history detail page.