add missing flush