Fixed packet capturing
Merge pull request #640 from dswd/fix-capture

Fixed packet capturing