fixed statistics graph not displaying properly and some small bugs