Your oil is probably too high. This will cook and brown the outside of your donuts quickly before the heat has a chance to reach and cook the interior. Keep an eye on the temperature of your oil during the entire frying process.