Fixed var updating