eternal loop fix