webapp record and replay bug fix