fixed passing by ref in normalization.