IE8 fix, closes #163, closes #164
Merge pull request #166 from Fidilip/163_IE8-fix

IE8 fix, closes #163, closes #164