fixed bug in generateSnow