Fix errors in UploadNewBlocks