Fix reading option attributes.