Fixed calculations for parent Z.