tried to fix photon bug under windows