Resolve ie8 bug