Fixed a bug where the title became undefined.