fix a pf bug