Fix for bad variable