getPublicGraphAsInpuStream fixed