Fix type error on cache id