fix debug mode defaulting to true