Fix class regex.