fix recovering url bug