correction bug flushing

Signed-off-by: loopasam <samuel.croset@gmail.com>