Taming Pocket Flaps

The pocket flaps on the back of my pants never stayed down even after ironing. so, I put material glue on the flaps and they stay down perfectly.