fix an error of fake loops and the new extract_datapath function pass compilation