crash when receving event fixed