[session] fixed session handling bug;