infinite loop bug fixed