Fix precedence of attributes