Removed getters from parent class and fixed a small bug