Fixed problem with photon object parameters