packet handler fix