fix substitution playback when importing to file. and when cursor index is 0