Fixed errors in subtitle downloading

Fixed errors in #566