Bug fix where slides at end of range could be unreachable.