Fix main. references from bookmarks callback.