Fixes unknown local variable exception.