unpackVarint fixed
debug code is removed