fix the history to write the full item