Fixe the bug of displaying empty date.