fix: inheritance issue #4 with black magic (not fully tested).