Fix a bounds-checking error in field cursor placement