reporting: fix bug with end tabular/end landscape