bug dividing by zero for rows per second