fixed gain issue