fix resample_scat bug
fix scattegram normalization bug