Fix IE8 issue. Closes #30