Resolve label name properly