Fixed bug where incoming packets were being ignored