Fixed unset error var