Fixed another bug with history.