fixing select tag bug