fixed reading 10 bytes from varInt32, to only save first 5 bytes