Fixed a bug that was causing entities in titles to be invalid.