Fix error with date planning that was going backward