fixed date checking