fix session method to turn uid into string