Fixing IE8 bugs