Fix a bound cursor bug