Fix node position when creating/updating node