fixed error when using redis-store