fix url implementation bug