Fixes on bytebuffers