fix register leak in makeDo