fixed empty date issue