Thanks! The funny thing is that the original patch was almost exactly the same (with dontSaveUrl variable), but I changed it for some reason :)