fixed gain bug
Merge branch 'temp'
update
gain bug