fixed bug when updating state in GraphNodeSocket