Fixed bug where number and shared would set parent incorrectly