Fix bug in adding title if not present.