Ignore undefined variables on deactivate