Fixes broken debug mode