Fixes buffer consumed