Trains stay on the tracks because of weight and the angle of the wheels, not the lip or flange on the inside of the wheel.