Fixed compile error DEBUG is not defined