corrigindo erro no flush when full