Fix errors in caret placement on box open and in annotation browser.