Fermion zero modes and level crossing