update redis conn and fix bug