When you have loose carpet sometimes the edging can curl up. Using a bit of glue put a small piece of linoleum or tile on the edging of the carpet. This small piece glued to the carpet will keep the carpet from rolling because of the little bit of weight.