Stats file fixes