Fix for disabling debug mode for an application.