Fixed mistake on histogram normalization