fixed broken post statistic tab and SQL-Error #519