Fixed issue with wrong nio.Beffer size