Concat two buffers correctly