Reduce the temperature of the oil. This will allow the donuts to be in the oil longer and therefore give them enough time to cook all the way through.