Fix #462: avoid orphan words in titles

Fix #462