Minor loops fix.