Fix normalizing sample values