resolve date comparison bug