Critical Bug Fix

Fixes a critical bug - the plugin raises an exception without this (undefined variable).