Fixed major bug in creating the patient level mdr matrix.