fix a bug with replay_st_finish