Fixes history.pushState IE error