fix a bug : redis can't connect will panic