bugfix. encode varint with correct length