Fix bug with "required" property