Bugfixes

Forgot about debug output >.<