bugfix for tail_graph