fix length passed to normalize