bug hunting again in ai_ch_coord.c