Fixed a huge bug concerning the calculation of cutoffs.