fixed creating stats