fix of a bug using buffer