Fix error on invalid cache path
Rewrote the filter system