Fixed the code to get statistics