Fixed crashes related to ChunkEvent