fixed double flow rule bug