Fix reversed local and external attribute names