fix style & debug mode