Fixed infinite loop when importing stats