Fix on_flush_received()