fix date compare