@bennn noticed that including `check_error([-Inf, …])` caused a loop in the diagram. The problem seems to be with the `-Inf` part.