Fixed to avoid having NaN in the gamma matrix. Assumed doses within the filter threshold pass gamma.