fix deactivate action