Fix broken graphs