fixed bugs with how 0 is treated with distributions