Potato cakes usually fall apart if they're too wet. This can be easily fixed by adding more flour. Add a little at a time until the potato cake mixture sticks together. Be careful not to add too much flour as the cakes will end up too dry.