fixed bug in calculation of era and batting average