Fixing getDebug invocation