small replay bug fix in demo mode