Fix for a variable that may not be defined under certain circumstances.