A new magnetic configuration is proposed for the suppression of co-extracted electrons in a negative-ion accelerator. This configuration is produced by an arrangement of permanent magnets embedded in one accelerator grid and creates an asymmetric local magnetic field on the upstream and downstream sides of this grid. Thanks to the "concentration" of the magnetic field on the upstream side of the grid, the resulting deflection of the ions due to magnetic field can be "intrinsically" cancelled by calibrating the configuration of permanent magnets. At the same time, the suppression of co-extracted electrons can be improved.