fix issue in workspace deletion