fixed replace url bug