Fix error with time graph