Fixed processing order of attributes.