Fixing conditional for sweep/normal caching solvers.