Normalizes attributes