@doublex fixed an issue with IE7 backwards compatibility. closes #1542