fixed error in normalization