packet protocol bug fix