Fix logic to account for being before first headline.