prevent browser crash in chrome