Fixes bug that prevents the URL to be properly set for uploads.