0 valued confusion matrix bug fix