Fix listOfObjects() definition