Fixed bug with protocoltrace