fix coredumps when no state or event is available yet