fixed infinite loop
readme