Corrected handling of debug mode indicator