Class hierarchy prints unknwon class type name