Fix incorrect variable name

This is a fix for a bug introduced by me in https://github.com/scoutapp/scout-plugins/pull/160.