fix bug when give the path of the replay