fix the primitive types of attributes