how do you apply your projection matrix?

the common mistake is just to apply the projection matrix while in modelview mode. if you then query the modelview matrix then you get both that and the projection matrix.
if that's not the answer then i have no idea(probably a bug in the code). multiplying a transformed vector by the matrix's inverse would untransform it :!: