Fixed bugs in the computation of BER with artificial noise