Fixes to avg.m myvar.m