It could be that the matrix mode is not always set to modelview when you are calling glpushmatrix and glpopmatrix. For example, when binding textures, the matrix mode can be set to the texture matrix.
Try adding glmatrixmode modelview before every glpushmatrix and glpopmatrix call. If that doesn’t work. Please provide us with a simple and complete example we can test (don’t forget machine/os/version specs).