Patch for IE7-related bug, closes #34.