minor bug in add_factscorrected