Don't leak variables anymore, thanks @Kambfhase, removed debug-code