redis connect bug fix