Attempt to fix case sensitive bug in fixStats