small fix with inheritance