appvars fix