fixed the default rule `required`.