trying to fix it, but (window.)history is a bitch