fixed broken typehierarchy