Fix required attributes.