Fixed and issue with ajax and the range metric.