fix math error when determining number of photons created