search off-by-1 gone, wtf?