Fix prefixes for inheritance hierarchy.