Fix crash in Chrome 23