fix general loop

fix general loop