Fix url handle bugs.