fixed crashes when stats array has all zeos. added frame to the battery graph