Fixed bug in LinkPrediction.