Fixed a small error in title code