fixing snapshot generation for when there's only one sample