*8996* Porting stats fixes

sure, that will be nice. I will create a bug entry for that, it should be done in ojs 2 too.