Fix getting position twice in createBookmark()