fix "required" attribute