fix index bug in inCheck_knig