fix normalize output bug