[FOLD] fix loop