Fixed #30

Instead of mad.indx[bn1] there was mad.indx(bn1)