fix buffer issue with bytebuf.duplicate()