Ie8 compatibility fix