moveToParent fix

Replace legacy attr reference with data one