fixed errors in retrieve_target method