caught potential segfault for unknown entities