Added some fixes if redis is not available.