Fixed some little bugs in the mass function code.