firefox and IE bug selectedOptions property undefined fixed