fixed bug when all history graphs had the same data