Maybe the conditional isn't working as you think it is.  Try outputting debug statements to the HTTP stream and see the code path that is actually being followed.