Fixes cache factory stuff.