ie 7-8 compatibility fix