NPE fix, initializing core in service