Corrected code in else statement of debug directive