Fixed protected/private issue with inheritance