Fixed cases when a class inherit other classes in loop
Fixed server startup isse.