Fixing IE8 bug