Fixed outdegree calculation bug