fix the play end of file