Fixing issue with only setters and getters