fix for more bonked residuals, will not crash on writing stats