Some fixes on visualization of graphs