Fix for loop in gluer