fixed segfault due to null ptr
removing cores