fix bug of editing transition and mode of node and port;