tpt++: fix invisible PHOT bug when going through GLAS sometimes 097e4968e025