catch circular hierarchies