cutoff order generation bugfixes