fixed numpy attribution bug