fix a bug in writing out Revocable packets