Fix a bug in BrowserInterface.evaluate