Fix bounds checking for Flip cursor control.