Fixing bug with appending varint of 0.