Fixed replay bug