Fixed DEBUG statement where a closing bracket was outside the IF !DEBUG statement