fix for parent classes not in module.

As reported by [Alexandro on the mailing list](https://groups.google.com/d/topic/xdress/SctB2Sv2Dfg/discussion)