fix if redis client passed