failing date comparison fix