Fixes returned URL