fix typo delgates->delegates

fix typo delgates->delegates in documentation and error log messages