fix problem when node was not stating in edit mode when created