Barabasi-Albert bug corrected