Either the mixture is too coarse so it doesn't hold together or the temperature of the oil is too high or too low. Fix the heat first and if it still does not work - put the mixture in the food processor and pulse it some more.