fix url building error