Fixes a bug in IE 8