Fix history url bug