Fix DEBUG_MODE constant use