[CAA uploading] Fixed a bug introduced in last commit