Fix retrieveObject