retryCount reset fix