fixes issue with the hash change detection when using setURL