Corrects typo in `trigger`

The line was copied from another point and I forgot to change the parameter name. Fixes #267.