Fixed the style length for loop