fixed bug in ramp-up algorithm