fixed date displaying problem