Fix date compare