fix session check on installation