Fix construct url bug