Cd matrix fix