write_preserve=False was at the wrong place