fixing an issue with history