fixed bug with sc.g-edges update