fixing jinja template error in record.html