fixed missin var