Bug fixing for configurable Kryo buffer size