Resolver problema do flow