Fixed normalization of updated D