fix bug where buffer might not be loaded on first fill