Fix IE8 bug where active class is not updating