fix repligard class hierarchy