If you have refrigirated the marinated chicken, then bring it close to room temperature before frying, otherwise the chicken might stay undercooked or unevenly cooked while the crust gets perfect color. Another reason could be, when you put chicken to the oil, Oil was too hot and the outer coating browned too quick while the chicken is still undercooked.