Fix mixer gain function