Fix failing assertion for unrolled-scan