fix compare to history