Fix using masks in checkValues when date field