The higher-order modes in the multistage free-electron laser for the two-beam accelerator is investigated. We derive a simple formula describing the evolution of the higher-order modes driven by a bunched beam. Numerical simulations are in good agreement with this model.