Fixed wrong inheritance