fixing redis cleaning for loader