Avoid a bug in the path count computation, preventing an infinite