fix bug in stable protocol