Unbroke title generation.

It's now a little bit less robust. I should probably come back to this
later.