fix more issues with stats command