fixed main loop not runing after loosing the segway