Fixed minus_elements leaking