Fix undefined missed during refactor.

Fixes non-breaking error during deactivation.