Fixed traversal to visit types.