fix timespan bug in graphs view