fix failure in redis adapter