fix crash when redis not running