Fix of an issue in deprovisioning