Fixed boolean validation.