fix debug mode config