Bug fixes for funnel algorithm.