Fix replay bug in Chrome

just a little trick...
Merge pull request #40 from fanzeyi/patch-1

Fix #31: replay bug in Chrome