When replacing the filament, be sure to insert the end of the filament into the hole on the side of the spool holder to prevent tangling and avoid the problem next time.