Fix a many-to-many join bug with evolutions.