@AttachmentLengths returns negative number

Do you know why @AttachmentLengths returns a negative number ? Also while checking the $File object length of the mail document the number is negative.