Fixed the issue that required a page refresh before being able to open a text annotation.