Fix URL construction.