Fix stat saving

Stats were saved every step after the first 30, instead of every 30 steps.