Fixed empty dates problem.