EG: fix a rare core dump