Fix bug in logic to normalize