fixed loop infinito