Fixed output bug in LinkPrediction.