Change where to check isInBookmarkMode.