fix inheritance in reflection