destroy() scope bugfix