fixed a bug on Z test for lensflares.