Fixed bug when adding nameless edges when using method command