Fixes issue with multiple inheritance classes

Related to issue #23