Fixed an issue with IE7

Fixes #27