Fix file stitching bugs exposed by ImageJ plugin updates