psi nested groups: fixed memory leak