Bugfix deleteFrame