Fixed bug with not being able to disable stats collection.