This can happen if you don't squeeze out enough moisture from the potatoes and onions, your eggs are oversized or if the mixture sits for too long. Squeeze each patty over a bowl as you form it to get rid of excess moisture so that it will stick together better.