Why does the yeast dough edge collapse, how can I avoid this?

The cake pan is rubbed but often the edge of the cake pan is rubbed too much. With yeast dough cakes, the dough residues are left over the edge of the cake pan. Fill the cake first, then push the overhanging dough onto the side of the tin. With other dough's it is better to first push the dough edge with your hands on the outer edge of the mold. Do not unroll the edge with a rolling pin on the mold as this is how the dough is pushed slightly into the mold and it drops down.