fixing CH matrix error