Fixed second cause of quadratic leak
Merge pull request #1 from Gabriel439/master

Fixed second cause of quadratic leak