Fix bug on create stats