Fixed bug in inheritance mapping.

Implemented explicit mapping.