fix #24 - error with IE8

fixed an error with IE8