fix not setting offlineGlobalGain's gain correctly