fix gethistory