Make sure that association names are replaced correctly