date definition fix