fixed packet handler errors