Fix caching of the superclasses
Merge pull request #7 from smecsia/fixcaching

Fix caching of the superclasses