Fix the greaterThan and lessThan validators