Stop Infinite loop