Found something almost a bad as a loose shoelace

Went for a ride the other night and had a sweat jacket on and as I rode I removed it and tied it around my waist, and sure enough as I started cruising the wheel all of a sudden just stopped causing me to fall as a piece of my jacket was hanging down and got caught between the tire and frame.