Fixed get function

Same error as for the set function