redis: fix crash