Fix bug when getValue return only the last selected value