fixed bug in subtitle detection