fixed cache window bug
fixed Q terms
fixed haspol bug