fixed bug with analysis stats