Add protocol constraint, fix typo