fixed a bug when validating class hierarchy
Merge pull request #9 from kuozhang/tmp

fixed a bug when validating class hierarchy