Fix ipa upload and download bug