fix detect_fct.c for new architecture