handle the case where no next match is visible