fixed issue with history print