date check fix