Fix formatting of attributes