Fix skip-writing script