BUG ``normalize`` should've modified input inplace