If the mashed potato cakes are not holding together, consider adding a bit more flour to the dough. You can also chill the dough slightly so that the mixture firms up.