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