fix bugs in pflog