fix bissection remaining steps calculation