getting selected value fix