  We present a scheme able to protect the quantum states of a cavity mode
against the decohering effects of photon loss. The scheme preserves quantum
states with a definite parity, and improves previous proposals for decoherence
control in cavities. It is implemented by sending single atoms, one by one,
through the cavity. The atomic state gets first correlated to the photon number
parity. The wrong parity results in an atom in the upper state. The atom in
this state is then used to inject a photon in the mode via adiabatic transfer,
correcting the field parity. By solving numerically the exact master equation
of the system, we show that the protection of simple quantum states could be
experimentally demonstrated using presently available experimental apparatus.
