Fix for IE 8 [see #46]