refresh bug fix

I have observed a bug where the 'is' method is not identifying selected options because the 'selected' attribute was not set.