temp fix for issue #6 -- history.replaceState() crash