fixed detect position of the gain selector