Fix bug with date (for graph)