fix to incorrect variable call

Fixes https://github.com/bolt/bolt/issues/1854