fixed issue with check_stats