Fix a bug where getters and setters are created as private