fix protocol error