Fix of double 'popstate' fire.