Fixed reading attributes.