fix problem with unknown location during recursive uploading