Your thread loops underneath because the top tension of the machine is too loose, or the bobbin isn’t threaded correctly, or both. Check and adjust the top tension and check that the bobbin is inserted correctly and wound.