Fix pipeline buffer flush