fix normalize bug