Fixed storing of the last visited URL