fixed infinite loop bug

HO!

HEY!