Fixing IE8 bug in the v2.x master branch.

Fixes #329.