Hi Ramesh,
As spotted by Ambrish and Aaron, I see the same thing that the Collapse context will collapse the complete queue value but top one and therefore you will run the if condition only once.
That is why you find values for first queue the second repetition of your source structure wont be checked as required.
Regards,
Nipun