minor fix to title detection