fix error in updating bookmarks