fix empty title when empty h1 text