Fix debug mode