bugfix forgot flush