Fixed segfault in events attending