accidentally an infinite loop fix