Search space infinite loop protection. Fixed a bug in the no-wrap code so it correctly targets span positions.