fix bug in retrieve version