Fixed issue with incorrect packet handling.