Fixed processing of first record in HTML table