Fixed url building bug