Fixed maxRetryTimes can't work