Improved IE 5-8 compatibility