Fix flush when no outputLimit