Fix a bug in the mixer synthesis function.