Fixed bug where packets failed to be put on messagequeue