fixes redis adapter bug