fixed null pointer exception when showing stats without related script