Correct undefined date