fixed bookmarks in current file logic