corrections in write_to_file_playlist