Fixed: issue inserting nodes while graph is runing the optimization