After hours of debugging with an old stable version of my program I found the source of the error. It has something do do with an target_map or bmap_for_entity command. But it's so strange (maybe an engine bug) I'm gonna write an new forum thread about it.