Fixed a missing -1 when normalizing.