Improved ie8 support