Fixed API for change to deactivate method.