fixed error on Statscontroller ($http is not defined)