fixed bug when building ksessionService in local environemtn