Fixed getter and setter function usage