Fixed var definition error