moved startTime check to fix stats bug