Fixes #260 for apistats as well