On the basis of the ideal-magnetohydrodynamic equilibrium code VMEC (Hirshman et al 1986 Comput. Phys. Commun. 43 143) supplemented by transformation of its results into magnetic coordinates, it is shown how current sheets, radially widened by the finite grid size, at rational values of rotational transform in 3d toroidal equilibria can be removed by variation of the equilibrium geometry.