fixed bug on createSession