Fixes #99 on develop

Fixing a really weird bug on IE I don't even know how to report.