FIX: flush all stream to avoid disordered output