fix infinite loop
THIS IS MY DESIGN