subtitle file generation fix