Fix protocol errors.