ajax_stats_fix, some other changes