trying to prevent crashes like http://vvcap.net/db/Opg2S8MDobkP7CGlZXUy.htp