Watch the towel where it touches the peg. A thick folded edge perched on the tip leaves little fabric behind it.
Illustration: a folded edge rests on the peg tip instead of securely behind it.
Use the sewn hanging loop if the towel has one. Otherwise spread the towel over a bar that accommodates its width.
Close the door gently and check again. If the door pushes the towel sideways, move the hanging spot outside its swing.