Problem with subtitles

my videos (movies or tv series) use subtitles srt. and when you get to the last frace of the subtitles they are still visible until the end of the video,

how can this problem be fixed