fix date comparison, again