[output] fix transitive subclasses from output