fix get-main-number