Fix peek window selection issue