fixed power law bug for discrete sources