Fix adding of too-long titles

I think this should fix the issue I mentioned in IRC about too-long titles.