API for /stats/: array fix