Fixing bug in DebugEffect.