Fixed Protocal bugs.