Bugfix: GetUsedBuffer should not set buffer unfilled.