Resolve label name properly and rename label of for loop