Fixed bug on normalization matrix