Fixed cache setItems bug