Fixed bug for dZhat_Z, ready for cluster run

Signed-off-by: David Evans <dgevans42@gmail.com>