An agent for treating keratin-containing fibers, in particular human hair, containing, in a cosmetically acceptable carrier, (a) at least one nonionic starch modified by means of propylene oxides, and (b) at least one anionic film-forming and/or anionic setting polymer, encompassing at least one structural unit of formula (I) and at least one structural unit of formula (II), in which R8, R9, R10, R11, and A3 are as defined in claim 1 use of the agents for the temporary deformation of hair and for hair care, in particular as an aerosol hair spray or