Fixed threading bug. Incorrect entry into global redis