Fix debug mode

Broken since when the debug mode has been disabled by default.