Fixes leaves issue.