Fix issue with stats command