fix bug in replay