Fixing options iterator for IE8