fixed bug with cut point iteration