Fix a bug that if a node changes parent, parent's matrix will not update to reflect this change.