fixed replay bug