fixed protocol bug