Fix the diagrams not being flushed correctly