fixed some value logging discrepancy between record and replay due to window object in browser.