fixed packet filter bug in main