fixing error if no redis is found