fix a debug mode