fix missing flush method