A method for maintaining the residual activity of an amadoriase contained in reagents for measuring glycated hemoglobin in the presence of an ionic surfactant or for alleviating reduction of the residual activity of an amadoriase contained in reagents for measuring glycated hemoglobin in the presence of an ionic surfactant, said method comprising using one or more ionic surfactant, an amadoriase, and a buffer that is capable of maintaining the residual activity of an amadoriase in the presence of an ionic surfactant or is capable of alleviating reduction of the residual activity of an amadoriase in the presence of an ionic surfactant, wherein said buffer is selected from the group consisting of a borate buffer, a Tris-HCl buffer, a phosphate buffer, a citrate buffer, a fumarate buffer, a glutarate buffer, a citraconate buffer, a mesaconate buffer, a malonate buffer, a tartrate buffer, a succinate buffer, an adipate buffer, ACES (N-(2-acetamido)-2-aminoethanesulfonic acid) buffer, BES (N,N-bis(2-hydroxyethyl)-2-amino-ethanesulfonic acid) buffer, Bicin (N,N-bis(2-hydroxyethyl)glycine) buffer, Bis-Tris (bis(2-hydroxyethyl)iminotris(hydroxymethyl)methane) buffer, EPPS (4-(2-hydroxyethyl)-1-piperazine-propanesulfonic acid) buffer, HEPPSO (N-(hydroxyethyl)piperazine-N′-2-hydroxypropanesulfonic acid) buffer, MES (2-(n-morpholino)ethanesulfonic acid) buffer, MOPS (3-(N-morpholino)propanesulfonic acid) buffer, MOPSO (2-hydroxy-3-morpholino-propanesulfonate) buffer, PIPES (piperazine-N,N′-bis(2-ethanesulfonic acid)) buffer, POPSO (piperazine-1,4-bis(2-hydroxypropanesulfonic acid)) buffer, TAPS (N-tris(hydroxymethyl)methyl-3-aminopropanesulfonic acid) buffer, TAPSO (3-[N-tris(hydroxymethyl)methylamino]-2-hydroxypropanesulfonic acid) buffer, TES (N-tris(hydroxymethyl)methyl-2-amino-ethanesulfonic acid) buffer, Tricine (N-Tris(hydroxymethyl)methylglycine) buffer and a combination thereof.