Fix towStartAvg query #1099