fixed some crashes

why event is not working??