Removing fermion doublers in chiral gauge theories on the lattice