fixes photonception issue