Fixed crash in Chrome due to leaking DOM nodes