fix an issue with graph end date