fix returned number of bytes read from AvatarData parseData