Updated classname generation in fields