fix the duplicate flow log problem