Fix bug: oops! $unit_parent isn't a function.