fix correct title in history state