Quick fix for custom gain setting