fixes duplicate class, missing tag and cfg typo