Fixed PhotonClient code