visibility_graph fix