Fix bug in substr title.