Fixing new session when being called with format js