Fix XS compile error with COW fix