Fix scope reference on history tracks criteria