Fixed longest run method in run stat calculator model