fix bug where associations names would be corrupted.