fix the bug on the photon overlaping