Fix cache script