Workaround quantum rootwrap bug.