Fix bug: flush history must not remove bookmarked items