Fix tabs and attributes