bugfix: memory leak in mmnormalize