Fix bug when deleting business processes