Fixed diagnosis issue

Second Reason especially was not working. Had vals and ids mixed up that
somehow went unnoticed by me