fix bug in normalization class