fix readVarint