Fix an error that's silent in browsers.