Fix Debug Mode