fixes createSnapshot for buffers with more enters than leaves