fixed callback issue when adding results to redis