Fix infinite loop in CPIData load_from_file