Fix boundary for offset when searching for next editable cell