fix issue with history model