fixed bug for redis