fix bug on passing selected dropdown value