fixed stat update