Fixed bug with past class in the table template.